using System;
using System.Security.Cryptography;
using System.Text;

namespace SDK.Scripts.Utils
{
	public class MD5
	{
		public static string GetMD5(string strToEncrypt)
		{
			byte[] bytes = Encoding.UTF8.GetBytes(strToEncrypt);
			System.Security.Cryptography.MD5 mD = System.Security.Cryptography.MD5.Create();
			byte[] array = mD.ComputeHash(bytes);
			string text = string.Empty;
			for (int i = 0; i < array.Length; i++)
			{
				text += Convert.ToString(array[i], 16).PadLeft(2, '0');
			}
			return text.PadLeft(32, '0');
		}
	}
}
